home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Toolbars / Main tools.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  1.7 KB  |  68 lines

  1. !!Script
  2. // Copyright ⌐ 2001 - Modelworks Software
  3.  
  4. /**
  5. @Tool: Main tools~defines mini toolbars for buttons on the
  6. main toolbar
  7. @Summary: Main tools~defines mini toolbars
  8. */
  9.  
  10. var gOutput = getOutput();
  11.  
  12.  
  13. function DoCommand()
  14. {
  15.     var toolBar = newToolBar("Main:File-edit tools", "main.file-edit");    
  16.     toolBar.restoreState();
  17.     
  18.     var toolBar = newToolBar("Main:Undo-redo tools", "main.undo-redo");
  19.     toolBar.restoreState();
  20.     
  21.     var toolBar = newToolBar("Main:Find tools", "main.find");
  22.     toolBar.restoreState();
  23.     
  24.     var toolBar = newToolBar("Main:Browse tools", "main.browse");
  25.     toolBar.restoreState();
  26.     
  27.     var toolBar = newToolBar("Main:JDK Build tools", "main.build");
  28.     SetupJDKToolBar(toolBar);
  29.     toolBar.restoreState();
  30.     
  31.     var toolBar = newToolBar("Main:View tools", "main.view");
  32.     toolBar.restoreState();
  33. }
  34.  
  35. function SetupJDKToolBar(toolbar)
  36. {    
  37.     if (toolbar)
  38.     {
  39.         // Set up the compile tool button -- the grinder icon
  40.         toolbar.setButton(0,  
  41.         "\\Java\\JDK\\compile.script",
  42.         "Compile a java file using Sun's Java compiler",
  43.         "JDK Compiler", true);
  44.         
  45.         toolbar.setButton(1,    
  46.         "\\Java\\JDK\\runApplication.script",
  47.         "Run an application using Sun's Java interpreter",
  48.         "JDK Interpreter");
  49.         
  50.         toolbar.setButton(2,  
  51.         "\\Java\\JDK\\testApplet.script",
  52.         "Test an applet using Sun's Java appletviewer",
  53.         "JDK Test Applet");
  54.         
  55.         toolbar.setButton(3, 
  56.         "\\Application\\runHtmlBrowser.script",
  57.         "Open a HTML file in the default HTML browser",
  58.         "HTML Browser");
  59.         
  60.         toolbar.setButton(4, 
  61.         "\\Java\\JDK\\debugApplication.script",
  62.         "Debug an application using Sun's Java debugger",
  63.         "JDK Debug Application");
  64.     }
  65. }
  66.  
  67. !!/Script
  68.